package com.qidian.buy.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2024-05-07
 */
@TableName("buy_menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单编号
     */
    @TableId("menu_id")
    private Long menuId;

    /**
     * 菜单的唯一标识
     */
    private String menuName;

    /**
     * 菜单标题，文本
     */
    private String menuTitle;

    /**
     * 菜单路由
     */
    private String menuPath;

    /**
     * 菜单图标
     */
    private String menuIcon;

    /**
     * 父菜单编号
     */
    private Long menuParentId;

    /**
     * 菜单顺序
     */
    private Integer menuOrder;

    @TableField(exist = false)
    private List<Menu> children;

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuTitle() {
        return menuTitle;
    }

    public void setMenuTitle(String menuTitle) {
        this.menuTitle = menuTitle;
    }

    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public Long getMenuParentId() {
        return menuParentId;
    }

    public void setMenuParentId(Long menuParentId) {
        this.menuParentId = menuParentId;
    }

    public Integer getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    @Override
    public String toString() {
        return "Menu{" +
            "menuId = " + menuId +
            ", menuName = " + menuName +
            ", menuTitle = " + menuTitle +
            ", menuPath = " + menuPath +
            ", menuIcon = " + menuIcon +
            ", menuParentId = " + menuParentId +
            ", menuOrder = " + menuOrder +
        "}";
    }
}
